package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.ScienceDao;
import mx.entity.Science;
import mx.service.ScienceService;

@Service("scienceService")
public class ScienceServiceImpl implements ScienceService {
	@Resource
	private ScienceDao scienceDao;

	public List<Science> list(Map<String, Object> map) {

		return scienceDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {

		return scienceDao.getTotal(map);
	}

	public Integer update(Science science) {

		return scienceDao.update(science);
	}

	public Science findById(Integer id) {

		return scienceDao.findById(id);
	}

	public Integer delete(Integer id) {

		return scienceDao.delete(id);
	}

	public Integer add(Science science) {

		return scienceDao.add(science);
	}

}
